<?php

Validator::register('currentpassword', function($attribute, 
                                                $value, 
                                                $paramters){
    return Hash::check($value, Auth::user()->password);
});

